package com.example.demo.dto;

public class StatusDto {
    private Integer id;
    private Integer status;
    private Integer newStatus;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 5 ^ 3
     * 1 0 1
     * 0 1 1
     * 110  -> 6
     */
    public Integer getNewStatus() {
        return status ^ 1;
    }

    public void setNewStatus(Integer newStatus) {
        this.newStatus = newStatus;
    }
}
